const http = require('http')
const server = http.createServer((req,res)=>{
    res.setHeader('Content-Type','text/plain;charset=utf8')
    if(req.url === '/login'){
        // res.write()
        res.end('登录页面')
    }
})

server.listen(3002,()=>{
    console.log(`server is running port:3002`);
})